package org.dark.fund.web.request;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
public class UserDeleteRequest {

    @NotBlank(message="密码不能为空")
    @Pattern(message = "密码必须是6-16位的字符,且包含至少1个大写字母，1个小写字母和1个数字",
            regexp = "^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)[\\s\\S]{6,16}$")
    private String password;

    @NotBlank(message="用户ID不能为空")
    private String userId;
}
